{template 'common/header'}
<ul class="nav nav-tabs">
    <li ><a href="{php echo $this->createWebUrl('system', array('op'=>'index'))}">账号管理</a></li>
    <li class="active"><a href="{php echo $this->createWebUrl('system', array('op'=>'add'))}">新建账号</a></li>
    <li ><a href="{php echo $this->createWebUrl('system', array('op'=>'department'))}">部门管理</a></li>
</ul>
<div class="main">
    <form action="" method="post" class="form-horizontal form" enctype="multipart/form-data">
        <div class="panel panel-default">
            <div class="panel-heading">
                后台账号管理
            </div>
            <div class="panel-body">

                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">登陆名</label>
                    <div class="col-sm-9 col-xs-12">
                        <input type="text" name="name" class="form-control" value="{$user['username']}" placeholder="请输入登陆账号名" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">密码</label>
                    <div class="col-sm-9 col-xs-12">
                        <input type="password" name="psw" class="form-control"  placeholder="请输入登陆密码"/>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">确认密码</label>
                    <div class="col-sm-9 col-xs-12">
                        <input type="password" name="pswc" class="form-control" placeholder="确认密码" />
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">所属部门</label>
                    <div class="col-sm-9 col-xs-12">
                        <select class="form-control" name="department_id">
                            <option value="0">请选择部门</option>
                            {loop $departments $department}
                            <option value="{$department['id']}" {if $department['id'] == $shipping_user['department_id']} selected="selected" {/if}>{$department['name']}</option>
                            {/loop}
                        </select>
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-xs-12 col-sm-3 col-md-2 control-label">联系电话</label>
                    <div class="col-sm-9 col-xs-12">
                        <input type="text" name="phone" class="form-control" value="{$shipping_user['phone']}" placeholder="请输入联系电话" />
                    </div>
                </div>

            </div>
        </div>
        <div class="form-group col-sm-12">
            <input type='hidden' name='id' value="{$theone['uid']}" />
            <input type="submit" name="submit" value="提交" class="btn btn-primary col-lg-1" />
            <input type="hidden" name="token" value="{$_W['token']}" />
        </div>
    </form>
</div>



{template 'common/footer'}